<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片列表</title>
    <link rel="stylesheet" href="./css/reset.css">
    <style>

        ul {
            margin: 10px auto;
            width: 236px;
            border: 10px solid orange;
        }

        /*
            设置li下边距，最后一个li不设置
        */
        ul li:not(:last-child){
            margin-bottom: 5px;
        }

        ul li img{
            width: 236px;
        }

    </style>
</head>
<body>
    
    <ul>
        <li>
            <a href="javascript:;"><img src="./img/1.jpg" alt=""></a>
        </li>
        <li>
            <a href="javascript:;"><img src="./img/2.jpg" alt=""></a>
        </li>
        <li>
            <a href="javascript:;"><img src="./img/3.jpg" alt=""></a>
        </li>
    </ul>
    
</body>
</html>